package cc.lj.internal.coupons.interfaces.dto.convert;

import cc.lj.internal.api.coupons.dto.MartCapBatchDTO;
import cc.lj.internal.coupons.domain.martcap.model.vo.CapBatchDO;
import cc.lj.internal.coupons.domain.martcap.model.vo.MartCapBatchDO;
import cc.lj.internal.coupons.interfaces.dto.CapBatchDTO;
import cc.lj.internal.coupons.interfaces.dto.command.InsertCapBatchCommand;
import cc.lj.internal.coupons.interfaces.dto.command.UpdateCapBatchCommand;
import cc.lj.internal.coupons.interfaces.dto.query.CapBatchQuery;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Named;
import org.mapstruct.factory.Mappers;

import java.math.BigDecimal;

/**
 * 封顶额活动，关联批次，商户封顶额 相关数据 DO与DTO转换
 * @author liangxifeng
 * @date 2022-10-20
 */
@Mapper
public interface MartCapBatchDTOConvertDO {
    MartCapBatchDTOConvertDO INSTANCE = Mappers.getMapper(MartCapBatchDTOConvertDO.class);

    /**
     * DTO转DO时
     */
    MartCapBatchDO convert(MartCapBatchDTO dto);


    /**
     * DO转DTO时
     */
    MartCapBatchDTO convert(MartCapBatchDO martCapBatchDO);

}
